package sd.czw.com.mmgapp.model;

import com.google.gson.annotations.SerializedName;

/**
 * Created by czw
 * desc 描述：
 * on 2017/7/21.
 */
public class PayModel {

    /**
     * errcode : 1
     * errmsg : {"pay_info":{"err_code":0,"pay_data":{"appid":"wx2a6c249af098535b","partnerid":"1376045602","timestamp":"1478140026","noncestr":"ar9ggeo9k6dargrs","package":"Sign=WXPay","prepayid":"wx20161103102706a15365e54e0276442533","paysign":"1BEEFB124FE2AD2539E9CA4EF807C1B8"}},"order":{"order_sn":"20161103026513w","order_amount":"0.01","pay_id":"11","total":"0.01"}}
     */

    private int errcode;
    /**
     * pay_info : {"err_code":0,"pay_data":{"appid":"wx2a6c249af098535b","partnerid":"1376045602","timestamp":"1478140026","noncestr":"ar9ggeo9k6dargrs","package":"Sign=WXPay","prepayid":"wx20161103102706a15365e54e0276442533","paysign":"1BEEFB124FE2AD2539E9CA4EF807C1B8"}}
     * order : {"order_sn":"20161103026513w","order_amount":"0.01","pay_id":"11","total":"0.01"}
     */

    private ErrmsgBean errmsg;

    public int getErrcode() {
        return errcode;
    }

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public ErrmsgBean getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(ErrmsgBean errmsg) {
        this.errmsg = errmsg;
    }

    public static class ErrmsgBean {
        /**
         * err_code : 0
         * pay_data : {"appid":"wx2a6c249af098535b","partnerid":"1376045602","timestamp":"1478140026","noncestr":"ar9ggeo9k6dargrs","package":"Sign=WXPay","prepayid":"wx20161103102706a15365e54e0276442533","paysign":"1BEEFB124FE2AD2539E9CA4EF807C1B8"}
         */

        private PayInfoBean pay_info;
        /**
         * order_sn : 20161103026513w
         * order_amount : 0.01
         * pay_id : 11
         * total : 0.01
         */

        private OrderBean order;

        public PayInfoBean getPay_info() {
            return pay_info;
        }

        public void setPay_info(PayInfoBean pay_info) {
            this.pay_info = pay_info;
        }

        public OrderBean getOrder() {
            return order;
        }

        public void setOrder(OrderBean order) {
            this.order = order;
        }

        public static class PayInfoBean {
            private int err_code;
            /**
             * appid : wx2a6c249af098535b
             * partnerid : 1376045602
             * timestamp : 1478140026
             * noncestr : ar9ggeo9k6dargrs
             * package : Sign=WXPay
             * prepayid : wx20161103102706a15365e54e0276442533
             * paysign : 1BEEFB124FE2AD2539E9CA4EF807C1B8
             */

            private PayDataBean pay_data;

            public int getErr_code() {
                return err_code;
            }

            public void setErr_code(int err_code) {
                this.err_code = err_code;
            }

            public PayDataBean getPay_data() {
                return pay_data;
            }

            public void setPay_data(PayDataBean pay_data) {
                this.pay_data = pay_data;
            }

            public static class PayDataBean {
                private String appid;
                private String partnerid;
                private String timestamp;
                private String noncestr;
                @SerializedName("package")
                private String packageX;
                private String prepayid;
                private String paysign;

                public String getAppid() {
                    return appid;
                }

                public void setAppid(String appid) {
                    this.appid = appid;
                }

                public String getPartnerid() {
                    return partnerid;
                }

                public void setPartnerid(String partnerid) {
                    this.partnerid = partnerid;
                }

                public String getTimestamp() {
                    return timestamp;
                }

                public void setTimestamp(String timestamp) {
                    this.timestamp = timestamp;
                }

                public String getNoncestr() {
                    return noncestr;
                }

                public void setNoncestr(String noncestr) {
                    this.noncestr = noncestr;
                }

                public String getPackageX() {
                    return packageX;
                }

                public void setPackageX(String packageX) {
                    this.packageX = packageX;
                }

                public String getPrepayid() {
                    return prepayid;
                }

                public void setPrepayid(String prepayid) {
                    this.prepayid = prepayid;
                }

                public String getPaysign() {
                    return paysign;
                }

                public void setPaysign(String paysign) {
                    this.paysign = paysign;
                }
            }
        }

        public static class OrderBean {
            private String order_sn;
            private String order_amount;
            private String pay_id;
            private String total;

            public String getOrder_sn() {
                return order_sn;
            }

            public void setOrder_sn(String order_sn) {
                this.order_sn = order_sn;
            }

            public String getOrder_amount() {
                return order_amount;
            }

            public void setOrder_amount(String order_amount) {
                this.order_amount = order_amount;
            }

            public String getPay_id() {
                return pay_id;
            }

            public void setPay_id(String pay_id) {
                this.pay_id = pay_id;
            }

            public String getTotal() {
                return total;
            }

            public void setTotal(String total) {
                this.total = total;
            }
        }
    }
}
